package com.jiemengshi.server.mapper;

import com.jiemengshi.server.model.DreamAnalysis;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface DreamAnalysisMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DreamAnalysis record);

    int insertSelective(DreamAnalysis record);

    DreamAnalysis selectByPrimaryKey(Integer id);

    List<DreamAnalysis> selectFuzzyByKeyWord(@Param("keyWord") String keyWord, @Param("excludedIds") List<Integer> excludedIds);

    List<DreamAnalysis> selectByKeyWord(String keyWord);
    
    int updateByPrimaryKeySelective(DreamAnalysis record);

    int updateByPrimaryKey(DreamAnalysis record);
}